package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 操作日志
 * </p>
 *
 * @author hpiggy
 * @since 2025-08-27
 */
@Data
@TableName("system_operation_log")
@ApiModel(value = "SystemOperationLog对象", description = "操作日志")
public class SystemOperationLog implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("功能名称")
    private String functionName;

    @ApiModelProperty("操作类型 1财务后台 2培训后台 3教师端")
    private Integer operationType;

    @TableField(exist = false)
    @ApiModelProperty("操作类型 1财务后台 2培训后台 3教师端")
    private String operationTypeName;

    private Integer yearPart;

    private Integer quarterNum;

    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("操作内容")
    private String operationContent;

    @TableField(exist = false)
    @ApiModelProperty("操作人名称")
    private String createdName;
}
